package com.sneaker.shower.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sneaker.shower.entity.domain.order.discount.OrderDiscountDO;
import com.sneaker.shower.entity.domain.order.SubOrderDO;

import java.math.BigDecimal;

/**
 * @author Hechangjian
 * @version 1.0
 * @className OrderDiscountService
 * @date 2019/12/02 10:49
 * @description
 * @program bath
 */
public interface OrderDiscountService extends IService<OrderDiscountDO> {

    Boolean saveOrUpdateCouponDiscount(SubOrderDO subOrderDO, Long couponGuid, Integer discountType);

    Boolean updateDiscountFee(Long discountGuid, BigDecimal discountFee);

    OrderDiscountDO getDiscount(Long subOrderGuid, Integer discountType);
}
